package com.xing.fruit.service.user;

import com.xing.fruit.pojo.User;

import java.util.List;

//业务层
public interface UserService {
    //根据用户名和密码得到登录用户
    public User getLoginUser(String username, String password);

    //注册
    public int userReg(User user);

    //查询所有用户
    public List<User> getUserList();

    //通过Id查询用户
    public User getUserById(int id);

    //修改用户
    public int updateUser(User user);

    //修改密码
    public int updatePwd(String password,String username);

    //删除用户
    public int deleteUser(int id);
}
